﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Form
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Form</h2>

    <% using(Html.BeginForm("Validar", "Home")) { %>
    
  <table>
        <tr>
            <td>
                Nome:
            </td>
            <td>
                <%= Html.TextBox("txtNome") %>
            </td>
        </tr>
        <tr>
            <td>
                Telefone:
            </td>
            <td>
                <%= Html.TextBox("txtTelefone") %>
            </td>
        </tr>
        <tr>
            <td>
                Endereço:
            </td>
            <td>
                <%= Html.TextBox("txtEndereco") %>
            </td>
        </tr>
    </table>

    <input id="Submit1" type="submit" value="submit" />


<% } %>

</asp:Content>
